<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var num1=parseFloat(prompt("请输入第一个数字："));
			var num2=parseFloat(prompt("请输入第二个数字："));
			var ysf=prompt("请输入运算符：");
			if(ysf=="+"){
				alert("两数运算结果为："+num1+"+"+num2+"="+(num1+num2));
			}else if(ysf=="-"){
				alert("两数运算结果为："+num1+"-"+num2+"="+(num1-num2));
			}else if(ysf=="*"){
				alert("两数运算结果为："+num1+"*"+num2+"="+(num1*num2));
			}else if(ysf=="/"){
				alert("两数运算结果为："+num1+"/"+num2+"="+(num1/num2));
			}
		</script>
	</body>
</html>
